<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/socket/Timer.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_9ad1227260954e346101f3844f0abb3d.html">socket</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Timer.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_timer_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __TIMER_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __TIMER_H__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;../thread/SharedPtr.h&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;../time/Time.h&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_sock_tools_8h.html">SockTools.h</a>&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">class </span><a class="code" href="class___timeout_info__.html">TimeoutInfo</a>;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keyword">class </span><a class="code" href="class_c_basic_service.html">CBasicService</a>;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<a class="code" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<a class="code" href="_timer_8h.html#a3b1add812260ba5bef87b40a579a4d3a">EXPORT_SHARED_PTR</a>(<a class="code" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>, <a class="code" href="class___timeout_info__.html">TimeoutInfo</a>);</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="class_c_timer_base.html">   17</a></span>&#160;<span class="keyword">class </span><a class="code" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="code" href="class_c_timer_base.html">CTimerBase</a></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;{</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <a class="code" href="tools_8h.html#af0d60cfe49f1e07cbec28c12afc4343e">delete_class_copy_operator</a>(<a class="code" href="class_c_timer_base.html">CTimerBase</a>);</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <a class="code" href="class_c_timer_base.html">CTimerBase</a>(<a class="code" href="class_c_basic_service.html">CBasicService</a>* service);</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    ~<a class="code" href="class_c_timer_base.html">CTimerBase</a>();</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordtype">bool</span> Reset();</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keywordtype">bool</span> Cancel();</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keywordtype">void</span> SetTimer(<span class="keyword">const</span> <a class="code" href="class_c_time_base.html">CTimeBase</a>&amp;t, <span class="keyword">const</span> <a class="code" href="class_shared_ptr.html">SharedPtr&lt;HandleBase&gt;</a>&amp; func, <span class="keywordtype">void</span>* invoker = <a class="code" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <a class="code" href="class_c_machine_time.html">CMachineTime</a>* StartTime(<a class="code" href="class_c_machine_time.html">CMachineTime</a>&amp; t);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keyword">static</span> <a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> TimerComplete(<a class="code" href="class_c_sock_error.html">CSockError</a> ec, <span class="keywordtype">void</span>* invoker);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <a class="code" href="class___timeout_info__.html">TimeoutInfo</a>* GetTimerInfo();</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="class_c_timer_base.html#a45d900ea34b698a1cca78c92a5c5a18d">   65</a></span>&#160;    <a class="code" href="class_shared_ptr.html">SharedPtr&lt;TimeoutInfo&gt;</a> <a class="code" href="class_c_timer_base.html#a45d900ea34b698a1cca78c92a5c5a18d">_tinfo</a>;</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="class_c_timer_base.html#aa1353bd6bbfb8fa4a045c4f091ab09e6">   66</a></span>&#160;    <a class="code" href="class_c_basic_service.html">CBasicService</a>* <a class="code" href="class_c_timer_base.html#aa1353bd6bbfb8fa4a045c4f091ab09e6">_service</a>;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;};</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="class_c_timer.html">   69</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_c_timer.html">CTimer</a></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;{</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <a class="code" href="class_c_timer.html#ac014a6dda1a216df1c46156da7c8f69d">delete_class_copy_operator</a>(<a class="code" href="class_c_timer.html">CTimer</a>);</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="class_c_timer.html#ad2195dc4c11ce1f98014a22a2314ec5a">   76</a></span>&#160;    <a class="code" href="class_c_timer.html#ad2195dc4c11ce1f98014a22a2314ec5a">CTimer</a>(<a class="code" href="class_c_basic_service.html">CBasicService</a>* service) {</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <a class="code" href="class_c_timer.html#ae2708cea97ddec84d6b7ede3c2e6d2d9">_timer</a>.<a class="code" href="class_shared_ptr.html#a0b0a4c8396bf40f91994f729855c0a5a">Reset</a>(<span class="keyword">new</span> <a class="code" href="class_c_timer_base.html">CTimerBase</a>(service));</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    }</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160; </div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="class_c_timer.html#afd3f6595928cd20f7faaece75f017733">   81</a></span>&#160;    <a class="code" href="class_c_timer.html#afd3f6595928cd20f7faaece75f017733">~CTimer</a>() {}</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_c_timer.html#a744d36ea8c827184cf2cc8634b924574">   89</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_c_timer.html#a744d36ea8c827184cf2cc8634b924574">Reset</a>() {</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_c_timer.html#ae2708cea97ddec84d6b7ede3c2e6d2d9">_timer</a>-&gt;<a class="code" href="class_c_timer_base.html#ae8f782500c3f8ade2436dbd8189f0328">Reset</a>();</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    }</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="class_c_timer.html#a745607665b797d5d68e90d32f221304b">   98</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_c_timer.html#a745607665b797d5d68e90d32f221304b">Cancel</a>() {</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_c_timer.html#ae2708cea97ddec84d6b7ede3c2e6d2d9">_timer</a>-&gt;<a class="code" href="class_c_timer_base.html#a65fe573e241729a9f62bc6757da9f36a">Cancel</a>();</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    }</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="class_c_timer.html#afadf9bf2c7fe7f1a6d7c34cbf90f979e">  110</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_timer.html#afadf9bf2c7fe7f1a6d7c34cbf90f979e">SetTimer</a>(<span class="keyword">const</span> <a class="code" href="class_c_time_base.html">CTimeBase</a>&amp; t, Func func) {</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <a class="code" href="class_c_timer.html#ae2708cea97ddec84d6b7ede3c2e6d2d9">_timer</a>-&gt;<a class="code" href="class_c_timer_base.html#a6fffc8e98a58289e7ea395cfbf4d73e9">SetTimer</a>(t, <span class="keyword">new</span> TimeoutHandleNull&lt;Func&gt;(func));</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    }</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> Func&gt;</div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="class_c_timer.html#a0d00239bd70be71654c2c3a7569cadbf">  114</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_c_timer.html#a0d00239bd70be71654c2c3a7569cadbf">SetTimer</a>(<span class="keyword">const</span> <a class="code" href="class_c_time_base.html">CTimeBase</a>&amp; t, Func func, <span class="keywordtype">void</span>* invoker) {</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <a class="code" href="class_c_timer.html#ae2708cea97ddec84d6b7ede3c2e6d2d9">_timer</a>-&gt;<a class="code" href="class_c_timer_base.html#a6fffc8e98a58289e7ea395cfbf4d73e9">SetTimer</a>(t, <span class="keyword">new</span> TimeoutHandle&lt;Func&gt;(func), invoker);</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    }</div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="class_c_timer.html#a4963ccc407406050df39d7b7e9346625">  125</a></span>&#160;    <a class="code" href="class_c_machine_time.html">CMachineTime</a>* <a class="code" href="class_c_timer.html#a4963ccc407406050df39d7b7e9346625">StartTime</a>(<a class="code" href="class_c_machine_time.html">CMachineTime</a>&amp; t) {</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_c_timer.html#ae2708cea97ddec84d6b7ede3c2e6d2d9">_timer</a>-&gt;<a class="code" href="class_c_timer_base.html#afd4814952f219f10b2f06a73fa9cec7d">StartTime</a>(t);</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    }</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="class_c_timer.html#a23172457eece0f1cac40500075a82844">  129</a></span>&#160;    <a class="code" href="class_c_timer_base.html">CTimerBase</a>&amp; <a class="code" href="class_c_timer.html#a23172457eece0f1cac40500075a82844">GetTimerBase</a>() { <span class="keywordflow">return</span> *<a class="code" href="class_c_timer.html#ae2708cea97ddec84d6b7ede3c2e6d2d9">_timer</a>; }</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="class_c_timer.html#ae2708cea97ddec84d6b7ede3c2e6d2d9">  131</a></span>&#160;    <a class="code" href="class_shared_ptr.html">SharedPtr&lt;CTimerBase&gt;</a> <a class="code" href="class_c_timer.html#ae2708cea97ddec84d6b7ede3c2e6d2d9">_timer</a>;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;};</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<a class="code" href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160; </div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="preprocessor">#endif // __TIMER_H__</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_c_timer_base_html_a6fffc8e98a58289e7ea395cfbf4d73e9"><div class="ttname"><a href="class_c_timer_base.html#a6fffc8e98a58289e7ea395cfbf4d73e9">CTimerBase::SetTimer</a></div><div class="ttdeci">void SetTimer(const CTimeBase &amp;t, const SharedPtr&lt; HandleBase &gt; &amp;func, void *invoker=NullPtr)</div><div class="ttdoc">设置定时器</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8cpp_source.html#l00052">Timer.cpp:52</a></div></div>
<div class="ttc" id="aclass_c_timer_html_a744d36ea8c827184cf2cc8634b924574"><div class="ttname"><a href="class_c_timer.html#a744d36ea8c827184cf2cc8634b924574">CTimer::Reset</a></div><div class="ttdeci">bool Reset()</div><div class="ttdoc">重置定时器</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8h_source.html#l00089">Timer.h:89</a></div></div>
<div class="ttc" id="aclass_c_sock_error_html"><div class="ttname"><a href="class_c_sock_error.html">CSockError</a></div><div class="ttdoc">套接字错误信息类</div><div class="ttdef"><b>Definition:</b> <a href="_sock_error_8h_source.html#l00013">SockError.h:13</a></div></div>
<div class="ttc" id="aclass_c_timer_base_html_a45d900ea34b698a1cca78c92a5c5a18d"><div class="ttname"><a href="class_c_timer_base.html#a45d900ea34b698a1cca78c92a5c5a18d">CTimerBase::_tinfo</a></div><div class="ttdeci">SharedPtr&lt; TimeoutInfo &gt; _tinfo</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8h_source.html#l00065">Timer.h:65</a></div></div>
<div class="ttc" id="aclass_c_timer_html_a0d00239bd70be71654c2c3a7569cadbf"><div class="ttname"><a href="class_c_timer.html#a0d00239bd70be71654c2c3a7569cadbf">CTimer::SetTimer</a></div><div class="ttdeci">void SetTimer(const CTimeBase &amp;t, Func func, void *invoker)</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8h_source.html#l00114">Timer.h:114</a></div></div>
<div class="ttc" id="aclass_c_timer_html_a745607665b797d5d68e90d32f221304b"><div class="ttname"><a href="class_c_timer.html#a745607665b797d5d68e90d32f221304b">CTimer::Cancel</a></div><div class="ttdeci">bool Cancel()</div><div class="ttdoc">取消定时器</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8h_source.html#l00098">Timer.h:98</a></div></div>
<div class="ttc" id="aclass_c_timer_html_ad2195dc4c11ce1f98014a22a2314ec5a"><div class="ttname"><a href="class_c_timer.html#ad2195dc4c11ce1f98014a22a2314ec5a">CTimer::CTimer</a></div><div class="ttdeci">CTimer(CBasicService *service)</div><div class="ttdoc">初始化定时器类，并与tcp服务类进行绑定</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8h_source.html#l00076">Timer.h:76</a></div></div>
<div class="ttc" id="aclass_shared_ptr_html"><div class="ttname"><a href="class_shared_ptr.html">SharedPtr&lt; HandleBase &gt;</a></div></div>
<div class="ttc" id="aclass_c_time_base_html"><div class="ttname"><a href="class_c_time_base.html">CTimeBase</a></div><div class="ttdoc">时间基类</div><div class="ttdef"><b>Definition:</b> <a href="_time_8h_source.html#l00078">Time.h:78</a></div></div>
<div class="ttc" id="atools_8h_html_af0d60cfe49f1e07cbec28c12afc4343e"><div class="ttname"><a href="tools_8h.html#af0d60cfe49f1e07cbec28c12afc4343e">delete_class_copy_operator</a></div><div class="ttdeci">#define delete_class_copy_operator(ClassName)</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00345">tools.h:345</a></div></div>
<div class="ttc" id="aclass_c_timer_base_html_a65fe573e241729a9f62bc6757da9f36a"><div class="ttname"><a href="class_c_timer_base.html#a65fe573e241729a9f62bc6757da9f36a">CTimerBase::Cancel</a></div><div class="ttdeci">bool Cancel()</div><div class="ttdoc">取消定时器</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8cpp_source.html#l00020">Timer.cpp:20</a></div></div>
<div class="ttc" id="atools_8h_html_a201ce692c9dca6599e5c12d00167419b"><div class="ttname"><a href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div><div class="ttdeci">#define DEF_BEG_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00036">tools.h:36</a></div></div>
<div class="ttc" id="a_timer_8h_html_a3b1add812260ba5bef87b40a579a4d3a"><div class="ttname"><a href="_timer_8h.html#a3b1add812260ba5bef87b40a579a4d3a">EXPORT_SHARED_PTR</a></div><div class="ttdeci">DEF_BEG_LIBTOOLS EXPORT_SHARED_PTR(LIBTOOLS, TimeoutInfo)</div></div>
<div class="ttc" id="aclass_c_timer_html_afd3f6595928cd20f7faaece75f017733"><div class="ttname"><a href="class_c_timer.html#afd3f6595928cd20f7faaece75f017733">CTimer::~CTimer</a></div><div class="ttdeci">~CTimer()</div><div class="ttdoc">析构函数</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8h_source.html#l00081">Timer.h:81</a></div></div>
<div class="ttc" id="atools_8h_html_a64152c8b939d1ce06c7c5cb6c97b62f8"><div class="ttname"><a href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a></div><div class="ttdeci">#define LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00095">tools.h:95</a></div></div>
<div class="ttc" id="aclass___timeout_info___html"><div class="ttname"><a href="class___timeout_info__.html">_TimeoutInfo_</a></div><div class="ttdef"><b>Definition:</b> <a href="_timer_info_8h_source.html#l00040">TimerInfo.h:40</a></div></div>
<div class="ttc" id="aclass_c_timer_base_html_afd4814952f219f10b2f06a73fa9cec7d"><div class="ttname"><a href="class_c_timer_base.html#afd4814952f219f10b2f06a73fa9cec7d">CTimerBase::StartTime</a></div><div class="ttdeci">CMachineTime * StartTime(CMachineTime &amp;t)</div><div class="ttdoc">获取定时器被设置的时间</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8cpp_source.html#l00041">Timer.cpp:41</a></div></div>
<div class="ttc" id="aclass_c_timer_base_html"><div class="ttname"><a href="class_c_timer_base.html">CTimerBase</a></div><div class="ttdoc">定时器</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8h_source.html#l00017">Timer.h:17</a></div></div>
<div class="ttc" id="aclass_c_timer_html_ac014a6dda1a216df1c46156da7c8f69d"><div class="ttname"><a href="class_c_timer.html#ac014a6dda1a216df1c46156da7c8f69d">CTimer::delete_class_copy_operator</a></div><div class="ttdeci">delete_class_copy_operator(CTimer)</div></div>
<div class="ttc" id="aclass_c_timer_base_html_aa1353bd6bbfb8fa4a045c4f091ab09e6"><div class="ttname"><a href="class_c_timer_base.html#aa1353bd6bbfb8fa4a045c4f091ab09e6">CTimerBase::_service</a></div><div class="ttdeci">CBasicService * _service</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8h_source.html#l00066">Timer.h:66</a></div></div>
<div class="ttc" id="atools_8h_html_ac909db71799bb22cb7d636a34cd785e4"><div class="ttname"><a href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div><div class="ttdeci">#define DEF_END_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00038">tools.h:38</a></div></div>
<div class="ttc" id="a_sock_tools_8h_html"><div class="ttname"><a href="_sock_tools_8h.html">SockTools.h</a></div></div>
<div class="ttc" id="aclass_c_timer_html_a23172457eece0f1cac40500075a82844"><div class="ttname"><a href="class_c_timer.html#a23172457eece0f1cac40500075a82844">CTimer::GetTimerBase</a></div><div class="ttdeci">CTimerBase &amp; GetTimerBase()</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8h_source.html#l00129">Timer.h:129</a></div></div>
<div class="ttc" id="aclass_c_timer_html_ae2708cea97ddec84d6b7ede3c2e6d2d9"><div class="ttname"><a href="class_c_timer.html#ae2708cea97ddec84d6b7ede3c2e6d2d9">CTimer::_timer</a></div><div class="ttdeci">SharedPtr&lt; CTimerBase &gt; _timer</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8h_source.html#l00131">Timer.h:131</a></div></div>
<div class="ttc" id="aclass_shared_ptr_html_a0b0a4c8396bf40f91994f729855c0a5a"><div class="ttname"><a href="class_shared_ptr.html#a0b0a4c8396bf40f91994f729855c0a5a">SharedPtr::Reset</a></div><div class="ttdeci">void Reset(Ty *p)</div><div class="ttdef"><b>Definition:</b> <a href="_shared_ptr_8h_source.html#l00175">SharedPtr.h:175</a></div></div>
<div class="ttc" id="atools_8h_html_a798af1e30bc65f319c1a246cecf59e39"><div class="ttname"><a href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a></div><div class="ttdeci">unsigned int DWORD</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00134">tools.h:134</a></div></div>
<div class="ttc" id="atools_8h_html_ab689500aaec0db066e3ac9483d3fe425"><div class="ttname"><a href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></div><div class="ttdeci">#define NullPtr</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00119">tools.h:119</a></div></div>
<div class="ttc" id="aclass_c_timer_html_afadf9bf2c7fe7f1a6d7c34cbf90f979e"><div class="ttname"><a href="class_c_timer.html#afadf9bf2c7fe7f1a6d7c34cbf90f979e">CTimer::SetTimer</a></div><div class="ttdeci">void SetTimer(const CTimeBase &amp;t, Func func)</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8h_source.html#l00110">Timer.h:110</a></div></div>
<div class="ttc" id="aclass_c_timer_base_html_ae8f782500c3f8ade2436dbd8189f0328"><div class="ttname"><a href="class_c_timer_base.html#ae8f782500c3f8ade2436dbd8189f0328">CTimerBase::Reset</a></div><div class="ttdeci">bool Reset()</div><div class="ttdoc">重置定时器</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8cpp_source.html#l00031">Timer.cpp:31</a></div></div>
<div class="ttc" id="aclass_c_timer_html"><div class="ttname"><a href="class_c_timer.html">CTimer</a></div><div class="ttdoc">定时器</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8h_source.html#l00069">Timer.h:69</a></div></div>
<div class="ttc" id="aclass_c_machine_time_html"><div class="ttname"><a href="class_c_machine_time.html">CMachineTime</a></div><div class="ttdoc">机器时间类</div><div class="ttdef"><b>Definition:</b> <a href="_time_8h_source.html#l00149">Time.h:149</a></div></div>
<div class="ttc" id="aclass_c_basic_service_html"><div class="ttname"><a href="class_c_basic_service.html">CBasicService</a></div><div class="ttdoc">服务类 基类</div><div class="ttdef"><b>Definition:</b> <a href="_service_base_8h_source.html#l00015">ServiceBase.h:15</a></div></div>
<div class="ttc" id="aclass_c_timer_html_a4963ccc407406050df39d7b7e9346625"><div class="ttname"><a href="class_c_timer.html#a4963ccc407406050df39d7b7e9346625">CTimer::StartTime</a></div><div class="ttdeci">CMachineTime * StartTime(CMachineTime &amp;t)</div><div class="ttdoc">获取定时器被设置的时间</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8h_source.html#l00125">Timer.h:125</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
